package com.jacky;

import com.mchange.v2.c3p0.ComboPooledDataSource;
import org.junit.Test;

import java.sql.Connection;

public class fdsgfds {
    @Test
    public void rteswts() throws Exception {
        ComboPooledDataSource cpds = new ComboPooledDataSource();
        cpds.setDriverClass( "com.mysql.cj.jdbc.Driver" ); //loads the jdbc driver
        cpds.setJdbcUrl( "jdbc:mysql://localhost:3306/jt" );
        cpds.setUser("root");
        cpds.setPassword("root");
        Connection conn = cpds.getConnection();
        System.out.println(conn);
    }
}
